package edu.nju.desserthouse.dao;

import java.io.Serializable;
import java.util.ArrayList;

import javax.ejb.Remote;

import nju.edu.desserthouse.model.Goods;

@Remote
public interface GoodsDao extends Serializable{

	public boolean save(Goods goods);
	
	public Goods find(String column, String value);
	
	public boolean updateByGoodsId(Goods goods);
	
	public ArrayList<Goods> getGoodsList(String column, String value);
	
	public boolean changePrice(String id, double newPrice);
	
	public boolean decrease(String id, int num);
	
	public boolean increase(String id, int num);
	
}
